﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using FirstFloor.ModernUI.Windows;

namespace BYS.XiAnComDept.App
{
    public static class UserControlExtensions
    {
        public static void SetDataContext(this UserControl userControl, object dataContext)
        {
            userControl.DataContext = null;
            userControl.DataContext = dataContext;
        }
    }
}
